package com.sjzsqjy.asdtiang.mysql;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.UniqueConstraint;
import org.hibernate.annotations.GenericGenerator;

/**
 * HosRequestMap entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "hos_request_map", catalog = "hospital", uniqueConstraints = @UniqueConstraint(columnNames = "url"))
public class HosRequestMap implements java.io.Serializable {

	// Fields

	private Long id;
	private Long version;
	private String url;
	private String configAttribute;

	// Constructors

	/** default constructor */
	public HosRequestMap() {
	}

	/** full constructor */
	public HosRequestMap(Long version, String url, String configAttribute) {
		this.version = version;
		this.url = url;
		this.configAttribute = configAttribute;
	}

	// Property accessors
	@GenericGenerator(name = "generator", strategy = "uuid")
	@Id
	@GeneratedValue(generator = "generator")
	@Column(name = "id", unique = true, nullable = false)
	public Long getId() {
		return this.id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	@Column(name = "version", nullable = false)
	public Long getVersion() {
		return this.version;
	}

	public void setVersion(Long version) {
		this.version = version;
	}

	@Column(name = "url", unique = true, nullable = false)
	public String getUrl() {
		return this.url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	@Column(name = "config_attribute", nullable = false)
	public String getConfigAttribute() {
		return this.configAttribute;
	}

	public void setConfigAttribute(String configAttribute) {
		this.configAttribute = configAttribute;
	}

}